package cn.gcxy.javase.ex.service;

import java.util.Collection;
import java.util.List;

import cn.gcxy.javase.ex.dao.IAccountDAO;
import cn.gcxy.javase.ex.dao.impl.collection.AccountDao;
import cn.gcxy.javase.ex.model.vo.Account;
import cn.gcxy.javase.ex.service.IAccountService;

public class AccountServiceImpl implements IAccountService {
	private IAccountDAO accountDao=new AccountDao();
	
	
	@Override
	public List<Account> getAllAccounts() {
		return accountDao.selectall();
	}

	@Override
	public boolean addAccount(Account account) {
		
		return accountDao.add(account);
	}

}
